package demo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import demo.dao.DemoDao;
import demo.model.User;
import demo.service.DemoService;

@Service
public class DemoServiceImpl implements DemoService{
	@Autowired
	private DemoDao demoDao;

	public User getUserInfo(String username) {
		return demoDao.getUserInfo(username);
	}

	public void saveUserInfo(String userName, String password) {
		demoDao.deleteUserInfo("Richard");
		demoDao.insertUserInfo();
		//demoDao.insertUserInfo();
	}

}
